package com.example.nio.service.impl;

import com.example.nio.commons.Agent;
import com.example.nio.dao.AgentMapper;
import com.example.nio.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AgentServiceImpl implements AgentService {
    @Autowired
    private AgentMapper agentMapper;

    @Override
    public int add(Agent agent) throws Exception {
        return agentMapper.add(agent);
    }

    @Override
    public int modify(Agent agent) throws Exception {
        return agentMapper.modify(agent);
    }


    @Override
    public Agent getAgentByColumn(String agent) {
        return agentMapper.getAgentByColumn(agent);
    }

}
